package com.yungu.swift.common.service;

import com.yungu.swift.base.ResponseData;

public interface CommonSensitiveWordService {
    /**
     * 获取初始化敏感词库
     *
     * @return String
     */
    ResponseData<String> getInitSensitiveWords();

    /**
     * 更新敏感词库
     *
     * @param sensitiveWords 敏感词串
     * @return ResponseData
     */
    ResponseData<Boolean> update(String sensitiveWords);

    /**
     * 检查源字符串中是否包含禁用敏感词
     *
     * @param source    源字符串
     * @param matchType 匹配规则 1：最小匹配规则，2：最大匹配规则
     * @return ResponseData
     */
    ResponseData<String> checkContainSensitiveWords(String source, int matchType);
}
